﻿<Page
    x:Class="UnitDrivenRT.ErrorDetails"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:UnitDrivenRT"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="TitlePanel" Grid.Row="0">
    		<TextBlock Text="UNIT DRIVEN" Style="{StaticResource PageHeaderTextStyle}" />
    		<TextBlock Text="error details" Style="{StaticResource PageSubheaderTextStyle}" VerticalAlignment="Top" Margin="0,40,0,0" />
    	</Grid>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentGrid" Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto" />
                <RowDefinition />
            </Grid.RowDefinitions>

            <StackPanel Grid.Row="0" Orientation="Horizontal">
                <Button Content="Back" VerticalAlignment="Center" Click="Back_Click" />
                <TextBlock VerticalAlignment="Center" Margin="10" Text="{Binding Name}" Style="{StaticResource GroupHeaderTextStyle}" />
            </StackPanel>

            <ScrollViewer 
				Grid.Row="1" 
				HorizontalScrollBarVisibility="Visible"
				VerticalScrollBarVisibility="Visible">
                <TextBlock 
					Text="{Binding Message}"
					TextWrapping="NoWrap"
					TextAlignment="Left" Style="{StaticResource GroupHeaderTextStyle}" />
            </ScrollViewer>
        </Grid>
    </Grid>
</Page>